<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="jquery/jquery-1.8.2.js"></script>
<script type="text/javascript">
	/* $(function () {
		$.post(
			"listCom",
			function (obj) {
				if(obj>0){
					for ( var i in obj) {
						$("[name='companyId']").append('<option value="'+obj[i].id+'">'+obj[i].name+'</option>');
					}
				}
				
			}
		)
	}) */
	

</script>
<body>
	<form:form action="update" method="post" modelAttribute="pa">
		<input type="hidden" name="id" value="${pa.id }">
		单位<select name="companyId">
			<option value="">请选择</option>
			<c:forEach items="${list }" var="s">
				<option value="${s.id }">${s.name }</option>
			</c:forEach>
		</select>
		<form:errors path="companyId"></form:errors><br>
		专利号<form:input path="patentNo"/>
		<form:errors path="patentNo"></form:errors><br>
		专利名称<form:input path="patentName"/>
		<form:errors path="patentName"></form:errors><br>
		技术领域<form:input path="category"/>
		<form:errors path="category"></form:errors><br>
		企业自报金额<form:input path="sales1"/>
		<form:errors path="sales1"></form:errors><br>
		评审核准金额<form:input path="sales2"/>
		<form:errors path="sales2"></form:errors><br>
		财政奖励金额<form:input path="rewards"/>
		<form:errors path="rewards"></form:errors><br>
		<input type="submit" value="保存">
	</form:form>
</body>
</html>